package inspur.entity;
import java.text.SimpleDateFormat;
import java.util.Date;


public class logObject {


    //
    private  String date;           //日期和时间
    private  String userid;         //user
    private  String  keyoperations; //关键操
    private  String  warninglevel;  //警告级别
    private String IP;              //发起IP


    public logObject(String userid, String keyoperations, String warninglevel, String IP) {
        Date d=new Date();
        SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        this.date=sdf.format(d);
        this.userid = userid;
        this.keyoperations = keyoperations;
        this.warninglevel = warninglevel;
        this.IP = IP;
    }


    public String getDate() {
        return date;
    }


    public void setDate(String date) {
        this.date = date;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getKeyoperations() {
        return keyoperations;
    }

    public void setKeyoperations(String keyoperations) {
        this.keyoperations = keyoperations;
    }

    public String getWarninglevel() {
        return warninglevel;
    }

    public void setWarninglevel(String warninglevel) {
        this.warninglevel = warninglevel;
    }

    public String getIP() {
        return IP;
    }

    public void setIP(String IP) {
        this.IP = IP;
    }
}
